package ie.lawlor.amvc.event;

import java.awt.Component;
import java.awt.Point;

public class PopupPayload {
    
    public Component source;
	public Point point;
    public Object payload;
    
    /** Creates a new instance of PopupEvent */
    public PopupPayload(Component source, Point point, Object doc) {
        this.source = source;
        this.point = point;
        this.payload = doc;
    }
    public PopupPayload(Component source, Point point) {
        this.source = source;
        this.point = point;
        this.payload = null;
    }
    
    public String toString() {
        return "Source : " + source + "\nPoint: " + point;
    }
}
